/*
 * Author: 李波（Edwin Lee)
 * Date: 2024-06-18 18:13:52
 * FilePath: /chat/include/server/offlinemessagemodel.h
 * LastEditTime: 2024-06-18 23:01:18
 * version: 1.0
 * Description: 离线消息数据库操作类
 */
#ifndef OFFLINEMESSAGEMODEL_H
#define OFFLINEMESSAGEMODEL_H

#include <string>
#include <vector>
using namespace std;

//description: 提供离线消息表的操作方法
//Date: 2024-06-18 18:28:22
class OfflineMsgModel
{
public:
    //description: 存储用户的离线消息
    //param userid: 用户id
    //param msg: json格式的离线消息
    //return {void}
    //Date: 2024-06-18 18:29:46
    void insert(int userid, string msg);

    //description: 删除用户的离线消息
    //param userid: 用户id
    //return {void}
    //Date: 2024-06-18 18:42:39
    void remove(int userid);

    //description: 获取用户的离线消息
    //param userid: 用户id
    //return {void}
    //Date: 2024-06-18 19:04:20
    vector<string> query(int userid);
};

#endif